#include "stdafx.h"
#include "helloworld.h"
#include "wigglywidget.h"

HelloWorld::HelloWorld( QWidget *parent /*= 0*/ )
	: QWidget(parent)
	, name("hello")
{

}

HelloWorld::~HelloWorld()
{

}

void HelloWorld::initialize()
{
	QVBoxLayout* layout = new QVBoxLayout;
	setLayout(layout);

	WigglyWidget *wigglyWidget = new WigglyWidget;
	wigglyWidget->setText("Hello world !");
	layout->addWidget(wigglyWidget);
}

QString HelloWorld::getName()
{
	return name;
}

QWidget* HelloWorld::getUi()
{
	return this;
}

#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
    Q_EXPORT_PLUGIN2(HelloWorld, HelloWorld);
#endif
